package ch.zhaw.cctd.domain.prototype;

import java.io.Serializable;
import java.util.Map;

/**
 * Representiert ein SpawnPointTyp und dessen Einstellungen im XML Config File
 * @author Rolf Koch
 * @author Benjamin Felder
 */
public class SpawnPointPrototype extends Prototype implements Serializable {

	private static final long serialVersionUID = -8055036197359763854L;
	
	public SpawnPointPrototype(Map<String, String> data) {
		super(data);
	}

	public int getPlayerId() {
		return this.getIntegerValue("player.refid");
	}
	
	public int getNextWaypointId() {
		return this.getIntegerValue("next.waypoint.refid");
	}

	public int getX() {
		return this.getIntegerValue("x");
	}

	public String getNextWayPointId() {
		return this.getValue("next.waypoint.refid");
	}
	public int getY() {
		return this.getIntegerValue("y");
	}

}
